<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div id="titleDiv">
	<a href="./index"><img id="titleImg" src="./image/title.png" /></a>
	<%
		String memId = (String)session.getAttribute("memId");
		
		if (memId == null) {
	%>
	<form id="loginForm" method="post" action="./index">
		學號 <input id="textStuNum" class="loginText" type="text" name="stuNum" /><br />
		密碼 <input class="loginText" type="password" name="pass" /><br />
		<a id="registerA" href="./registerMember">立刻註冊</a>
		<input id="submitLogin" class="whiteButton" type="submit" value="登入" />
	</form>	
	<%
		}
		else if (memId.equals("0")) {
	%>
	<div id="loginDiv">
		鄭川如老師您好<br />
		以下是您的後台功能:<br />
		<a href="./editAnnounce"><button class="whiteButton">編輯重要公告</button></a>
		<a href="./logout"><button class="whiteButton">登出</button></a>
	</div>
	<%
		}
		else {
	%>
	<div id="loginDiv">
		<%=session.getAttribute("stuName")%> 同學您好<br />
		歡迎您使用原住民與法律教學網<br />
		<a href="./logout"><button class="whiteButton">登出</button></a>
	</div>
	<%
		}
	%>
	<div id="calendarDiv">
		<a><img src="image/banner3.png" /></a>
		<a><img src="image/march_calendar.png" /></a>
		<a><img src="image/april_calendar.png" /></a>
		<a><img src="image/may_calendar.png" /></a>
		<a><img src="image/june_calendar.png" /></a>
	</div>
</div>